package com.friday.test;

import java.sql.Date;

import com.friday.bo.EvectionApplyBo;
import com.friday.bo.impl.EvectionApplyBoImpl;
import com.friday.dao.EmployeeDao;
import com.friday.dao.EvectionApplyDao;
import com.friday.dao.impl.EmployeeDaoImpl;
import com.friday.dao.impl.EvectionApplyDaoImpl;
import com.friday.po.EvectionApply;

public class Bo_EvectionApply {
//	private Date nowday = new Date(System.currentTimeMillis());
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Date nowday = new Date(System.currentTimeMillis());
		EvectionApplyDao evedao = new EvectionApplyDaoImpl();
		EmployeeDao emdao = new EmployeeDaoImpl();
		EvectionApplyBo evebo = new EvectionApplyBoImpl();
		
		EvectionApply eve = new EvectionApply();
//		eve.setStartDate(nowday);
//		eve.setEndDate(nowday);
//		eve.setEmployee("0b676c9b-4d0f-4be0-8744-0fd51b080bd8");
//		
//		eve.setNote("nicacai");
		
		try {
//			evebo.applyEvection(eve);
			
			String id = "4773b69b-eddc-4e23-9996-1e5f93130fa9";
//			eve = evebo.queryOneEvection(id);
			evebo.approveEvection(id);
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
		// TODO Auto-generated method stub

	}

}
